package com.spring.service.example.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.spring.bean.example.Sort;
import com.spring.dao.example.SortDao;
import com.spring.exception.DaoException;
import com.spring.exception.ServiceException;
import com.spring.service.ServiceSupport;
import com.spring.service.example.SortService;

@Service
@Transactional
public class SortServiceImpl extends ServiceSupport implements SortService {

	@Autowired
	private SortDao sortDao;
	
	@Override
	public List<Sort> queryForList() throws ServiceException {
		try {
			return sortDao.queryForList();
		} catch (DaoException e) {
			throw new ServiceException(e.getMessage());
		}
	}


}
